/* 全局样式重置 - 使用通用选择器 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 类型选择器：选择body元素 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  color: #5f5f5f;
  display: flex;
  flex-direction: column;
}

/* ID选择器示例：#page-title */
#page-title {
  /* ID选择器优先级高于类选择器 */
  font-weight: normal;
}

/* 头部样式 - 固定显示在顶部，高度132px */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1.32rem;
  background-color: #e66c06;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2rem;
  z-index: 1000;
  box-sizing: border-box;
}

.header-left,
.header-right {
  width: 0.55rem;
  height: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 0.54rem;
  font-weight: normal;
  color: #ffffff;
}

.icon-back,
.icon-more {
  width: 0.55rem;
  height: 0.55rem;
  cursor: pointer;
}

/* 主容器 */
.container {
  flex: 1;
  padding-top: 1.32rem;
  padding-bottom: 1.4rem;
  min-height: 100vh;
  background-color: #ffffff;
}

/* 表单区域 */
.form-section {
  padding: 0.4rem 0.4rem 0.3rem;
  background-color: #ffffff;
}

/* 表单行 */
.form-row {
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 0.38rem;
  box-sizing: border-box;
}

.form-label {
  width: 2.05rem;
  font-size: 0.46rem;
  color: #5f5f5f;
  flex-shrink: 0;
}

.form-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.45rem;
  color: #000000;
  padding: 0.1rem 0.1rem;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid #a1a1a1;
  height: 0.66rem;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #a1a1a1;
  font-size: 0.45rem;
}

.form-input-phone {
  flex: none;
  width: 40% !important;
  margin-right: 0.2rem;
}

/* 验证码输入框 */
.form-input-code {
  width: 2.8rem;
  flex: none;
  border: 1px solid #a1a1a1;
  background: transparent;
  outline: none;
  font-size: 0.38rem;
  padding: 0.1rem 0.2rem;
  padding-bottom: 0.1rem;
  height: 0.75rem;
  box-sizing: border-box;
}

.form-input-code::placeholder {
  color: #a1a1a1;
  font-size: 0.38rem;
}

/* 验证码按钮 */
.btn-code {
  /* padding: 0.05rem 0.2rem; */
  background: transparent;
  border: none;
  color: #e66c06;
  font-size: 0.38rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-code:active {
  opacity: 0.7;
}

/* 错误提示信息 */
.error-message {
  color: #ff0000;
  font-size: 0.38rem;
  margin: 0 0 0 2.05rem;
  padding: 0;
  text-align: left;
  line-height: 1.5;
}

/* 注册按钮 */
.btn-register {
  width: 100%;
  margin: 0 0 0.1rem;
  padding: 0.3rem;
  background-color: #e66c06;
  box-sizing: border-box;
  border: none;
  border-radius: 0.05rem;
  color: #ffffff;
  font-size: 0.54rem;
  font-weight: normal;
  cursor: pointer;
  letter-spacing: 0.3rem;
  text-indent: 0.3rem;
  height: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-register:active {
  background-color: #d55f00;
}

/* 底部链接 */
.form-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.28rem;
  color: #5f5f5f;
  padding: 0.2rem 0;
}

.link-left {
  color: #5f5f5f;
}

.link-right {
  color: #5f5f5f;
}

/* 底部导航栏 */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.46rem;
  background-color: #e66c06;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 1000;
  padding: 0 0.3rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.1rem 0.25rem 0.04rem;
  box-sizing: border-box;
  background-color: transparent;
}

.nav-icon {
  width: 0.64rem;
  height: 0.64rem;
  margin-bottom: 0.04rem;
}

.nav-text {
  font-size: 0.3rem;
  color: #ffffff;
  letter-spacing: 0.03rem;
  font-weight: normal;
}

.nav-item.active {
  background-color: #ffffff;
}

.nav-item.active .nav-text {
  color: #e66c06;
}
